import {defineStore} from "pinia";
import {ref} from "vue";
import type {DjProgram} from "@/models/personalized";
import {usePersonalizedDjProgram} from "@/API/api";


export const usePersonalizedStore = defineStore('personalized', () => {
    const djProgram = ref<DjProgram[]>([]);
    const getDjProgram = async () => {
        if (djProgram.value.length) return;
        djProgram.value = await usePersonalizedDjProgram()
    };
    return {
        djProgram,
        getDjProgram,
    }
});
